package com.baitiaojun.moments.service;

import com.baitiaojun.api.domain.moments.UserMoments;
import com.baitiaojun.api.exception.ConditionException;
import com.baitiaojun.api.vo.PageInfo;

import java.util.List;
import java.util.Set;


/**
 * @类名 SendMsgService
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2022/11/27 12:09
 * @版本 1.0
 */
public interface MomentsService {

    void addUserMoments(UserMoments userMoments) throws ConditionException;

    PageInfo getSubscribedUserMoments(Long userId, Integer pageNo, Integer pageSize) throws Exception;

    List<UserMoments> batchGetUserMomentsOthers(Set<Long> followingUserIds, Integer pageNo, Integer pageSize);

    void setMoments(List<UserMoments> userMomentsList, List<UserMoments> page, String key) throws Exception;

    void cancelUserMoments(Long id, Long userId) throws Exception;

    UserMoments getUserMoments(Long contentId);

    List<Object> getCurrentUserMoments(Long userId, Integer pageNo, Integer pageSize) throws Exception;

    Integer getMomentsCount(Long userId);
}